﻿{include file="Main/menu" /}
<div class="tab">
	<div class="tab-head">
		<strong>系统设置</strong>
		<ul class="tab-nav">
			<!--<li {if $tab == ''}class="active"{/if}><a href="#tab-set">系统设置</a></li>-->
			<!--<li {if $tab == 'pay'}class="active"{/if}><a href="#tab-pay">支付设置</a></li>-->
			<li {if $tab == ''}class="active"{/if}><a href="#tab-version">版本更新</a></li>
			<li {if $tab == 'download'}class="active"{/if}><a href="#tab-download">下载设置</a></li>
		</ul>
	</div>
	<div class="tab-body" style="border: none;padding-top: 0">
		<div class="am-g">
			<div class="am-u-sm-12" style="padding:20px;background: #fff">
				<div class="tab-panel {if $tab == 'download'}active{/if}" id="tab-download">
					<form method="post" class="form-x" action="?tab=download">
						<input type="hidden" name="edit" value="download">
						<div class="am-dropdown">
							<div class="label">
								<label>安卓app下载地址</label>
							</div>
							<div class="field">
								<input type="text" class="input input-auto" id="android" name="android" value="{$data.android}" size="80" placeholder="安卓app下载地址"/>
							</div>
						</div>
						<div class="am-dropdown">
							<div class="label">
								<label>苹果app下载地址</label>
							</div>
							<div class="field">
								<input type="text" class="input input-auto" id="ios" name="ios" value="{$data.ios}" size="80" placeholder="苹果app下载地址"/>
							</div>
						</div>
						<div class="form-button">
							<button class="button bg-main" type="submit">提交</button>
						</div>
					</form>
				</div>
				<div class="tab-panel {if $tab == ''}active{/if}" id="tab-version">
					<form method="post" class="form-x" enctype="multipart/form-data">
						<input type="hidden" name="edit" value="version">
						<div class="am-dropdown">
							<div class="label">
								<label>终端类型</label>
							</div>
							<div class="field">
								<select name="type" class="input input-auto">
									<option value="user">用户端</option>
									<!--<option value="seller">商家端</option>
									<option value="express">配送端</option>-->
								</select>
							</div>
						</div>
						<div class="am-dropdown">
							<div class="label">
								<label>上传apk</label>
							</div>
							<div class="field">
								<input type="file" id="apk" name="apk" required/>
							</div>
						</div>
						<div class="am-dropdown">
							<div class="label">
								<label>版本号</label>
							</div>
							<div class="field">
								<input type="text" class="input input-auto" id="version" name="version" size="80" placeholder="例如 1.0.1" style="width: 120px;" required/>
							</div>
						</div>
						<div class="am-dropdown">
							<div class="label">
								<label>是否强制更新</label>
							</div>
							<div class="field">
								<div class="button-group radio">
									<label class="button">
										<input type="radio" name="constraint" value="1"><span class="icon icon-check"></span> 是
									</label>
									<label class="button active">
										<input type="radio" name="constraint" value="0" checked><span class="icon icon-times"></span> 否
									</label>
								</div>
							</div>
						</div>
						<div class="am-dropdown">
							<div class="label">
								<label>描述</label>
							</div>
							<div class="field">
								<textarea name="description" style="min-height: 328px;" class="input input-auto" rows="5" cols="80" placeholder="请填写描述" required></textarea>
							</div>
						</div>
						<div class="am-dropdown">
							<button class="button bg-main" type="submit">提交</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
{include file="Main/menu_footer" /}